package com.ATM;

/*
定义一个账户类Account，至少需要包含（卡号、姓名、性别、密码、余额、每次取现额度）
*/
public class Account {
    private String carId;
    private String userName;
    private char sex;
    private String password;
    private double money;
    private double limit;

    public Account() {
    }

    public Account(String carId, String userName, char sex, String password, double money, double limit) {
        this.carId = carId;
        this.userName = userName;
        this.sex = sex;
        this.password = password;
        this.money = money;
        this.limit = limit;
    }

    public String getCarId() {
        return carId;
    }

    public void setCarId(String carId) {
        this.carId = carId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public double getLimit() {
        return limit;
    }

    public void setLimit(double limit) {
        this.limit = limit;
    }
}
